#include <stdio.h>
int main()
{
    int max(int x,int y);
    int a[10],m,n,i;
    printf("input 10 integer numbers:");
    for (i=1,m=a[0],n=0;i<=10;i++)
    {
        scanf("%d",&a[i]);
        if(max(m,a[i])>m)
        {
            m=max(m,a[i]);
            n=i;
        }
    }
    printf("The largest number is %d\nit is the %dth number\n",m,n);
    return 0;


}
int max(int x,int y)
{
    return (x>y?x:y);
}